//这篇是webWorker加载使用的
importScripts('b.js');
onmessage = function (event) {
  const num = event.data;
  let result = 0;
  for(let i = 0;i<=num;i++){
    result += i;
  }
  postMessage(add(result));
};
